/*
 *  A class to represent a uniform processor
 */

package jp.aist.gtrc.plus.admission.EDF;

public class UniformCPU extends CPU {
   public double performanceIndex;
    
   public UniformCPU(int id) {
      this(""+id);
   }

   public UniformCPU(String id) {
      super(id);
      this.performanceIndex = 1.0;
   }
 
   public UniformCPU(int id, double performanceIndex) {
      this(""+id,performanceIndex);
   }

   public UniformCPU(String id, double performanceIndex) {
      super(id);
      this.performanceIndex = performanceIndex;
   }

   public UniformCPU(UniformCPU cpu) {
      super(cpu);
      this.performanceIndex = cpu.performanceIndex; 
   }

   public void setPerformanceIndex(double performanceIndex) {
      this.performanceIndex = performanceIndex;
   }
}
